<template>
  <div class="page-box">
    <dataList
      placeholder="请输入计税公式名称"
      :pageInfo="pager"
      :listData="tableData"
      :selectData="selectDataArr"
      searchName="formula"
      :menuList="['delete']"
      :filterList="filterList"
      openSelection
      @menu-click="handleMenuClick"
    >
      <el-table :data="tableData" align="center" @selection-change="$event => (selectDataArr = $event)">
        <el-table-column width="80px" type="selection"></el-table-column>
        <el-table-column label="税率设置类型" align="center" prop="taxesName"></el-table-column>
        <el-table-column label="更新时间" align="center" prop="updateTime"></el-table-column>
        <el-table-column label="税率/税级" align="center" prop="taxes"></el-table-column>
        <el-table-column label="计税公式" align="center" prop="formula"></el-table-column>
        <el-table-column label="适用时间" align="center" prop="startTime">
          <template slot-scope="scope">{{scope.row.startTime}}至{{scope.row.endTime}}</template>
        </el-table-column>
        <el-table-column width="120px" label="操作">
          <template slot-scope="scope">
            <el-button type="text" @click="deleteRow(scope)">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
    </dataList>
  </div>
</template>

<script src="./index.js"></script>
<style scoped lang="scss">
@import "./index";
</style>

